package com.eee.xiang.market.common;

public class TableData<T> {

        public final static String OK = "获取数据成功";
        private String msg;
        private int code;
        private int count;
        private T data;

        public TableData(String msg, int code, int count, T data) {
            this.msg = msg;
            this.code = code;
            this.count = count;
            this.data = data;
        }

        public TableData(int count, T data) {
            this.msg = TableData.OK;
            this.code = 0;
            this.count = count;
            this.data = data;
        }

        public String getMsg() {
            return msg;
        }

        public void setMsg(String msg) {
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }

        public int getCount() {
            return count;
        }

        public void setCount(int count) {
            this.count = count;
        }

        public T getData() {
            return data;
        }

        public void setData(T data) {
            this.data = data;
        }
}
